<template>
    <div>
      <button @click="_testAxios">axios</button>
    </div>
</template>

<script>
import {testAxios} from '../../api/testAxios'

export default {
  name: 'BaseAxios',
  methods: {
    _testAxios () {
      let url = 'http://116.10.187.233:18098/T3/identity/login'
      url = 'https://c.y.qq.com/musichall/fcgi-bin/fcg_yqqhomepagerecommend.fcg?g_tk=5381&inCharset=utf-8&outCharset=utf-8&notice=0&format=jsonp&platform=h5&uin=0&needNewCode=1'
      let data = {
        'name': 'tdo',
        'password': '123456',
        'userType': '3'
      }
      data = ''
      testAxios(url, data, 'get').then((res) => {
        console.log(res)
      })
    }
  }
}
</script>

<style scoped>

</style>
